<?php
class giftModel extends model{
	public $table="gift";
	public function __construct(&$base){
		parent::__construct($base);		
	}
	
	public function catlist(){
		return array(
			1=>"初级",
			2=>"中级",
			3=>"高级",
			4=>"豪华",
			5=>"贵族",
		);
	}
	
	public function getListByIds($ids,$fileds="*"){
		$d=$this->select(array(
			"where"=>" id in("._implode($ids).") ",
			"fileds"=>$fields
		));
		if($d){
			foreach($d as $v){
				$data[$v['id']]=$v;
			}
			return $data;
		}
	}
	
}
?>